package com.zsguan.s.stools4andr;

import java.util.Map;
import java.util.Set;

/**
 * Created by chshqiang on 15-9-4.
 * url处理类
 */
public class SUrlTool {
    public static String getUrlForMap(Map<String, String> httpParams) {
        String params = "";
        Set<String> keys = httpParams.keySet();

        for (String key : keys) {
            String kv = key + "=" + httpParams.get(key) + "&";
            params += kv;
        }

        params = params.substring(0, params.length() - 1);

        return params;
    }
}
